﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Show digit name</title>
    <link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
    <div id="js-console"></div>
	<script src="scripts/js-console.js"></script>

    <script>
        var number = 5;

        switch (number) {
            case 0:
                jsConsole.writeLine("zero");
                break;
            case 1:
                jsConsole.writeLine("one");
                break;
            case 2:
                jsConsole.writeLine("two");
                break;
            case 3:
                jsConsole.writeLine("three");
                break;
            case 4:
                jsConsole.writeLine("four");
                break;
            case 5:
                jsConsole.writeLine("five");
                break;
            case 6:
                jsConsole.writeLine("six");
                break;
            case 7:
                jsConsole.writeLine("seven");
                break;
            case 8:
                jsConsole.writeLine("eight");
                break;
            case 9:
                jsConsole.writeLine("nine");
                break;
            default:
                jsConsole.writeLine("Wrong number!");
                break;
        }
    </script>
</body>
</html>
